home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
T-TPUG Old Monthly Disks
/
(c)t8.d64
/
title page.c
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
2KB
|
53 lines
5 REM TITLE PAGE BY: R.D. SWIFT :
7 REM SEE COMMENTS AT THE END. :
10 DIMP$(6):PRINT"[147]INDENT PRINT ?";:N=40:NL=1:B$=" ":H$=CHR$(241)
15 REM CHR$(241) IS HORIZONTAL LINE ON THE PRINTER
20 GETA$:IFA$<>"Y"ANDA$<>"N"THEN20
25 PRINTA$;"":OPEN4,4:PRINT#4,CHR$(27)CHR$(64):REM INITIALIZE PRINTER
30 IFA$="Y"THENPRINT#4,CHR$(27)CHR$(77)CHR$(10):N=35:REM SET LH PRINT MARGIN
40 PRINTTAB(16)"[145]";NL:INPUT"[145]NUMBER OF LINES";NL
50 IFNL<1ORNL>6THEN40:REM 6 LINES MAX
60 ML=0:PRINT"LINES TO BE 28 CHARACTERS MAXIMUM"
70 FORI=1TONL:P$(I)="-"
80 PRINT"[145]LINE";I;TAB(9);P$(I):PRINTTAB(7);:INPUT"[145]";P$(I)
90 IFLEN(P$(I))>28THEN80
100 IFLEN(P$(I))>MLTHENML=LEN(P$(I))
110 PRINT:NEXT:FORI=1TO6:B$=B$+B$:H$=H$+H$:NEXT
120 T$=CHR$(14)+LEFT$(B$,INT((N-ML-4)/2)):FORI=1TO15-NL:PRINT#4,T$:NEXT
125 REM T$ IS THE TAB SPACES
130 PRINT#4,T$;CHR$(240);LEFT$(H$,ML+2);CHR$(242)
135 REM CHR$(240) = OR CHARACTER ON PRINTER
136 REM CHR$(242) = ^ CHARACTER ON PRINTER
137 REM CHR$(246) = / CHARACTER ON PRINTER
138 REM CHR$(247) = EXP CHARACTER ON PRINTER
139 REM CHR$(245) = VERTICAL LINE CHARACTER ON PRINTER
140 BP$=T$+CHR$(245)+LEFT$(B$,ML+2)+CHR$(245):PRINT#4,BP$
150 FORI=1TONL:P$=P$(I)
160 IFLEN(P$)<ML+2THENP$=P$+" "
170 IFLEN(P$)<ML+2THENP$=" "+P$:GOTO160
180 PRINT#4,T$;CHR$(245);P$;CHR$(245):PRINT#4,BP$:NEXT
190 PRINT#4,T$;CHR$(246);LEFT$(H$,ML+2);CHR$(247):PRINT#4,CHR$(27)CHR$(64):CLOSE4
200 REM: :
201 REM: TITLE PAGE :
202 REM: :
203 REM: BY :
204 REM: :
205 REM: BOB SWIFT :
206 REM: :
207 REM: :
208 REM: THIS PROGRAM WAS WRITTEN :
209 REM: TO RUN ON A COMMODORE 64 :
210 REM: COMPUTER WITH A GEMINI-10X :
211 REM: PRINTER. :
212 REM: :
213 REM: IF YOU ARE USING A :
214 REM: DIFFERENT PRINTER, YOU MAY :
215 REM: HAVE TO CHANGE SOME OF THE :
216 REM: PRINTER CODES TO SUIT YOUR :
217 REM: PARTICULAR SET-UP. :
218 REM: :
219 REM: I HOPE THAT THIS PROGRAM :
220 REM: HELPS YOU AS MUCH AS IT HAS :
221 REM: HELPED ME. GOOD LUCK. :
222 REM: :